package com.wdd.atcrowdfunding.manager.service.impl;

import com.wdd.atcrowdfunding.manager.dao.UserRoleMapper;
import com.wdd.atcrowdfunding.manager.service.UserRoleService;
import com.wdd.atcrowdfunding.vo.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public void saveUserRoleRelationship(Integer userid, Data data) {
        userRoleMapper.saveUserRoleRelationship(userid,data);
    }

    @Override
    public void deleteUserRoleRelationship(Integer userid, Data data) {
        userRoleMapper.deleteUserRoleRelationship(userid,data);
    }
}
